﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace WindowsFormsApp2
{
    /// <summary>
    /// 消息
    /// </summary>
    public class RetInfo
    {
        /// <summary>
        /// 接口号
        /// </summary>
        public string SID { get; set; }
        /// <summary>
        /// 返回代码
        /// </summary>
        public string retcode { get; set; }
        /// <summary>
        /// 返回信息
        /// </summary>
        public string retmsg { get; set; }
    }

    /// <summary>
    /// 消息加密后报文
    /// </summary>
    public class ENCMSGMessage
    {
        /// <summary>
        /// 消息加密后报文
        /// </summary>
        public string ENCMSG { get; set; }
    }

    public class EnumClass
    {
        /// <summary>
        /// 业务SID号
        /// </summary>
        [Description("业务")]
        public enum EnumSID
        {
            [Description("接口业务：解析ofd版式发票文件")]
            _0解析ofd版式发票文件 =0,
        }

        /// <summary>
        /// 成功/失败/异常0/1/-1
        /// </summary>
        public enum EnumRetCode
        {
            /// <summary>
            /// 成功=0
            /// </summary>
            成功 = 0,
            /// <summary>
            /// 失败=1
            /// </summary>
            失败 = 1,
            /// <summary>
            /// 异常=-1
            /// </summary>
            异常 = -1
        }

    }

    /// <summary>
    /// Guid
    /// </summary>
    public class MyGuid
    {
        private string _strGuid;
        public string StrGuid
        {
            //get { return Guid.NewGuid().ToString("N"); }
            get { return _strGuid; }
            set { _strGuid = value; }
        }
    }
}
